#ifndef FKFILEMANAGER_H
#define FKFILEMANAGER_H

#include <QObject>
#include <QString>
//#include <QVariant>

class FKFileManager:public QObject{
    Q_OBJECT
public:
    FKFileManager(QObject *parent = 0);
    ~FKFileManager();
    static void setRootPath(QString rootPath);
    enum Mark{
        newOne=1,
        nextOne=2,
        lastOne=3,
        errorOne=0
    };
protected:
    static QVariant packVar(FKFileManager::Mark mark, const QString &file, const QVariant &var);
    static FKFileManager::Mark unpackVar(QString &file, QVariant &var);
    static const qint64 blockSize;
    static QString _rootPath;
};

#endif // FKFILEMANAGER_H
